package com.lxk.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GoodsComExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsComExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodsComIdIsNull() {
            addCriterion("goods_com_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdIsNotNull() {
            addCriterion("goods_com_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdEqualTo(Integer value) {
            addCriterion("goods_com_id =", value, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdNotEqualTo(Integer value) {
            addCriterion("goods_com_id <>", value, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdGreaterThan(Integer value) {
            addCriterion("goods_com_id >", value, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_com_id >=", value, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdLessThan(Integer value) {
            addCriterion("goods_com_id <", value, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_com_id <=", value, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdIn(List<Integer> values) {
            addCriterion("goods_com_id in", values, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdNotIn(List<Integer> values) {
            addCriterion("goods_com_id not in", values, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_com_id between", value1, value2, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsComIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_com_id not between", value1, value2, "goodsComId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNull() {
            addCriterion("wx_user_id is null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNotNull() {
            addCriterion("wx_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdEqualTo(Integer value) {
            addCriterion("wx_user_id =", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotEqualTo(Integer value) {
            addCriterion("wx_user_id <>", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThan(Integer value) {
            addCriterion("wx_user_id >", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id >=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThan(Integer value) {
            addCriterion("wx_user_id <", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id <=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIn(List<Integer> values) {
            addCriterion("wx_user_id in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotIn(List<Integer> values) {
            addCriterion("wx_user_id not in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id not between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIsNull() {
            addCriterion("orders_id is null");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIsNotNull() {
            addCriterion("orders_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrdersIdEqualTo(Integer value) {
            addCriterion("orders_id =", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotEqualTo(Integer value) {
            addCriterion("orders_id <>", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdGreaterThan(Integer value) {
            addCriterion("orders_id >", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("orders_id >=", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLessThan(Integer value) {
            addCriterion("orders_id <", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLessThanOrEqualTo(Integer value) {
            addCriterion("orders_id <=", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIn(List<Integer> values) {
            addCriterion("orders_id in", values, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotIn(List<Integer> values) {
            addCriterion("orders_id not in", values, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdBetween(Integer value1, Integer value2) {
            addCriterion("orders_id between", value1, value2, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotBetween(Integer value1, Integer value2) {
            addCriterion("orders_id not between", value1, value2, "ordersId");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextIsNull() {
            addCriterion("goods_com_text is null");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextIsNotNull() {
            addCriterion("goods_com_text is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextEqualTo(String value) {
            addCriterion("goods_com_text =", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextNotEqualTo(String value) {
            addCriterion("goods_com_text <>", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextGreaterThan(String value) {
            addCriterion("goods_com_text >", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextGreaterThanOrEqualTo(String value) {
            addCriterion("goods_com_text >=", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextLessThan(String value) {
            addCriterion("goods_com_text <", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextLessThanOrEqualTo(String value) {
            addCriterion("goods_com_text <=", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextLike(String value) {
            addCriterion("goods_com_text like", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextNotLike(String value) {
            addCriterion("goods_com_text not like", value, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextIn(List<String> values) {
            addCriterion("goods_com_text in", values, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextNotIn(List<String> values) {
            addCriterion("goods_com_text not in", values, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextBetween(String value1, String value2) {
            addCriterion("goods_com_text between", value1, value2, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComTextNotBetween(String value1, String value2) {
            addCriterion("goods_com_text not between", value1, value2, "goodsComText");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreIsNull() {
            addCriterion("goods_com_score is null");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreIsNotNull() {
            addCriterion("goods_com_score is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreEqualTo(Integer value) {
            addCriterion("goods_com_score =", value, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreNotEqualTo(Integer value) {
            addCriterion("goods_com_score <>", value, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreGreaterThan(Integer value) {
            addCriterion("goods_com_score >", value, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_com_score >=", value, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreLessThan(Integer value) {
            addCriterion("goods_com_score <", value, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreLessThanOrEqualTo(Integer value) {
            addCriterion("goods_com_score <=", value, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreIn(List<Integer> values) {
            addCriterion("goods_com_score in", values, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreNotIn(List<Integer> values) {
            addCriterion("goods_com_score not in", values, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreBetween(Integer value1, Integer value2) {
            addCriterion("goods_com_score between", value1, value2, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_com_score not between", value1, value2, "goodsComScore");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeIsNull() {
            addCriterion("goods_com_time is null");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeIsNotNull() {
            addCriterion("goods_com_time is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeEqualTo(Date value) {
            addCriterion("goods_com_time =", value, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeNotEqualTo(Date value) {
            addCriterion("goods_com_time <>", value, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeGreaterThan(Date value) {
            addCriterion("goods_com_time >", value, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("goods_com_time >=", value, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeLessThan(Date value) {
            addCriterion("goods_com_time <", value, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeLessThanOrEqualTo(Date value) {
            addCriterion("goods_com_time <=", value, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeIn(List<Date> values) {
            addCriterion("goods_com_time in", values, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeNotIn(List<Date> values) {
            addCriterion("goods_com_time not in", values, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeBetween(Date value1, Date value2) {
            addCriterion("goods_com_time between", value1, value2, "goodsComTime");
            return (Criteria) this;
        }

        public Criteria andGoodsComTimeNotBetween(Date value1, Date value2) {
            addCriterion("goods_com_time not between", value1, value2, "goodsComTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}